<%@ page import="com.conversationboard.model.*" %>
<%@ page import="com.conversationboard.config.*" %>
<%@ page import="com.conversationboard.controller.confirm.Confirm" %>

<%@page pageEncoding="UTF-8"%>
<%@page contentType="text/html;charset=UTF-8"%>

<% 
	Message message = (Message) request.getAttribute("message");
%>

<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
		<title>Admin: Edit Message</title>
		<link rel="stylesheet" type="text/css" href="<%=Configuration.getInstance().getRoot()%>/Stylesheets/<%=StyleSheets.getStyleSheetFileName(request.getCookies())%>">
	</head>

	<body>
	
		<div class="headingblock">
			<h1>Admin: Edit Message</h1>
		</div>

		<div class="mainblock">		
			<h3>Edit Message</h3>

			<p>Please note that editing messages involves editing the message as raw HTML,
			   not as Wikitext, and newlines will not be substituted for <strong>&lt;br/&gt;</strong>
			   tags</p>
	
			<form class="formsection" action="AdminUpdateMessageControllerServlet" method="post">
			 	
			 	<input name="boardId" value="<%=message.getBoardId()%>" type="hidden" />
			 	<input name="threadId" value="<%=message.getThreadId()%>" type="hidden" />
			 	<input name="messageId" value="<%=message.getMessageId()%>" type="hidden" />
			 	<%= Confirm.getKey(request.getUserPrincipal().getName()) %>
			 	
			 	<textarea class="textbox" class="textbox" name="text" rows=6 cols=80><%=message.getBody()%></textarea>
			 	
			 	<br /><br />
			 	
			 	<input type="submit" value="Submit Update" />
			 	
			</form>
		</div>

		<!--<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>-->
		<!--<script type="text/javascript">_uacct = "UA-1148679-1";urchinTracker();</script>--> 
			
	</body>
	
</html>